some fun with new ffmpeg filtergraph features.
Run time 21 secondsProducer Tracey JaquithProduction Company PoohBot PicturesAudio/Visual sound, color
I had wanted to make a fully lit (eg: sunny) video be more like a dimly lit and blurry video -- using just filtergraph time shifts and blends.
My plan/hope was to make areas of motion blur, and make areas that remained the same seem untouched.
it worked! 8-)
Original source was a shot of WWDC 2013 taken by Hunter Lee Brown.
Script/source code is below.
The gist of the code is to fidget the source to 10 seconds in, slightly smaller, and rotated 90 degrees.
Once have the source, split into 8 streams, each up to ~1 second apart, and "average" them in cascading pairs until back to one "merged from 8" streams again.
PTS == Presentation Time Stamp (timecode of each video packet in end-user time scale).
For original.mp4, 2002 * 7 == 14336 pts (which is about 1 second in wall-clock time).
# script designed to take an input video and blur/average each pixel *OVER TIME*
# using ffmpeg!
ffmpeg -y -i WWDC2013.HD.mp4 -ss 10 -vf 'scale=960x540,transpose=1' -c:a copy -b:v 4096k -movflags faststart original.mp4;
# NOTE: did "seekpoint=[3,6,9..21]" instead of "setpts=PTS-[...]" but not working (now?)
BASE=2002; # xxxx factor based upon any input's timebase!
ffmpeg -y -i original.mp4 -c:a copy -shortest -b:v 4096k -movflags faststart -vf "